package com.bus.service.impl;

import com.bus.dao.TaskDao;
import com.bus.entity.Task;
import com.bus.service.TaskService;
import com.bus.vo.TaskVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskServiceImpl implements TaskService {
    @Autowired
    TaskDao taskDao;

    @Override
    public void Insert(TaskVo taskVo) {
        taskDao.Insert(taskVo);
    }

    @Override
    public void Delete(Integer id) {
        taskDao.Delete(id);
    }

    @Override
    public List<Task> SelectAll(Integer userId) {
        return taskDao.SelectAll(userId);
    }
}
